package com.itcoon.transform4j.demo.web.vo;

import com.itcoon.transform4j.demo.domain.Teacher;
import com.itcoon.transform.base.annotation.AssembleModel;
import com.itcoon.transform.base.annotation.AssembleModelProperty;

@AssembleModel(from = Teacher.class)
public class TeacherVCO {

    @AssembleModelProperty
    private Long id;

    @AssembleModelProperty
    private String name;

    private Integer age;

    @AssembleModelProperty
    private StudentVCO student;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public StudentVCO getStudent() {
        return student;
    }

    public void setStudent(StudentVCO student) {
        this.student = student;
    }
}
